// 公共组件导出
export { default as CommonDrawer } from './CommonDrawer';
export { default as CommonForm } from './CommonForm';
export type { CommonFormProps, CommonFormRef, FormSection } from './CommonForm';
export { default as CommonTable } from './CommonTable';
export { default as EditableTable } from './EditableTable';
export { default as PageTemplate } from './PageTemplate';
export { default as SearchForm } from './SearchForm';
export { default as SmartBreadcrumb } from './SmartBreadcrumb';
export { default as ThemeToggle } from './ThemeToggle';
// 工具函数导出
export { buildActionColumn, buildBatchActions, checkRequiredFields } from './utils/index';
export type { ActionButtonConfig, BatchActionConfig } from './utils/index';

// 配置构建器导出
export { PageTemplateConfigBuilder, configPresets, createPageTemplateConfig } from './PageTemplate/configBuilder';

// 类型导出
export type {
  ActionConfig,
  BatchActionConfig as BatchActionConfigType,
  CommonTableProps,
  CrudConfig,
  FormConfig,
  FormDrawerProps,
  FormFieldConfig,
  FormSection as FormSectionType,
  PageConfig,
  PageTemplateProps,
  SearchConfig,
  SearchFieldConfig,
  SearchFormProps,
  TableConfig,
} from './PageTemplate/types';

// CRUD服务导出
export { CrudService, commonCrudConfigs, createCrudService } from '../services/crudService';
